import { BasicColumn, FormSchema } from "/@/components/Table";

//列表数据
export const columns: BasicColumn[] = [
  {
    title: "企业名称",
    align: "center",
    dataIndex: "name"
  },
  {
    title: "企业法人",
    align: "center",
    dataIndex: "legal",
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: "企业电话",
    align: "center",
    dataIndex: "phone",
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  // {
  //   title: "银行账号",
  //   align: "center",
  //   dataIndex: "bankAccount"
  // },
  // {
  //   title: "开户行",
  //   align: "center",
  //   dataIndex: "bankName"
  // },
  {
    title: '税率(%)',
    align: "center",
    dataIndex: 'taxRate',
    customRender:({text}) =>{
      return !text ? "0.0000" : (parseFloat(text)*100).toFixed(4);
    },
  },
  {
    title: "创建人",
    align: "center",
    dataIndex: "createBy"
  },
  {
    title: "创建时间",
    align: "center",
    sorter: true,
    dataIndex: "createTime"
  },
  {
    title: "状态",
    align: "center",
    sorter: true,
    dataIndex: "status",
    filters: [
      { text: "审核中", value: "0" },
      { text: "通过", value: "1" },
      { text: "拒绝", value: "2" },
      { text: "禁用", value: "3" },
    ],
    filterMultiple: false,
    slots: { customRender: "statusSlot" }
  }
];
//查询数据
export const searchFormSchema: FormSchema[] = [];

//表单数据
export const formSchema: FormSchema[] = [];
